#ifndef __IM_CONNECTION_UNIX_H__
#define __IM_CONNECTION_UNIX_H__

#include <im_connection.h>

/**
 * @defgroup IMConnection
 * @ingroup PrivateIMBus
 * @{
 */

IM_BEGIN_DECLS

/**
 * @brief Create a new IMConnection object and connect to a specified address.
 *
 * This is the implementation for Unix system.
 *
 * The newly created IMConnection object is owned by the creator
 * (not floating). So creator should unref it explicitly when it's not
 * used anymore.
 *
 * @param address pointer to an IMAddress object.
 * @return A newly created IMConnection object on success. If fail to create
 * the new object or fail to connect to the specified address, then a null
 * pointer is returned.
 */
IMConnection*   im_connection_unix_new_connect  (const IMChar   *address,
                                                 IMIOError      *error);

IM_END_DECLS

#endif
/**  @} */

/*
vi:ts=4:nowrap:ai:expandtab
*/
